1 general:: see AT PAINS.
American Heritage Idioms
2 general:: Phrase(s): take (great) pains (to do something) Fig. to make a great effort to do something. • Tom took pains to decorate the room exactly right. • We took great pains to get there on time.
McGrawhill's American Idioms And Phrasal Verbs